package branch_access;

import mware_lib.RemoteException;
import mware_lib.SkControl;
import mware_lib.Skeleton;


public class ManagerSkeleton extends Skeleton<Manager>{

	public ManagerSkeleton(Manager object) {
		super(object);
	}

	@Override
	public Object callMethod(String method, Object[] args) throws Throwable {
		if (method.equals("createAccount")) {
			return object.createAccount((String) args[0]);
		} else if (method.equals("removeAccount")) {
			SkControl.removeSkeleton((String) args[0]);
			return object.removeAccount((String) args[0]);
		} else {
			throw new RemoteException("Unknown function.");
		}
	}

}
